{template('header.html')}

<TABLE class=tb_style cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD class=td_title align=left colSpan=8>&nbsp;自定义标签管理 ( 排序方式: 优先级从高到低 )</TD></TR>
  <TR>
    <TD class="td_border" width="100%" colSpan=2 height=30>&nbsp;&nbsp;&nbsp;<A
      href="{:U(MODULE_NAME &'/index')}"><FONT color=#ff0000>全部分类</FONT></A> |
	{$rssort type='rs'}
	<a href="{:U(MODULE_NAME &'/index?sortid='& rssort('id'))}"><font color="{if req('sortid')=rssort('id')}#C91F83{else}#000000{/if}">{$rssort('name')}</font></a> | 
	{/$rssort}
	<a href="{:U(MODULE_NAME &'/index?sortid=0')}"><font color="{if req('sortid')=0}#BD5E0A{else}#57541E{/if}">未分类</font></a> |
 </TD></TR>
 </TBODY>
</TABLE>
<TABLE class=tb_style id=dance_lists cellSpacing=0 cellPadding=0 width="100%"
border=0>
  <FORM name="form" action="templets_label.asp" method="post">
  <TBODY>
  <TR>
    <TD class="td_border" align="middle" width="5%" bgColor="#fafbf7" height="30">编号</TD>
    <TD class="td_border" align="middle" width="10%" bgColor="#fafbf7" height="30">优先指数</TD>
    <TD class="td_border" align="middle" width="20%" bgColor="#fafbf7">调用代码</TD>
    <TD class="td_border" align="left" width="27%" bgColor="#fafbf7">&nbsp;标签说明</TD>
    <TD class="td_border" align="middle" width="18%" bgColor="#fafbf7">&nbsp;修改时间</TD>
    <TD class="td_border" align="middle" width="5%" bgColor="#fafbf7">&nbsp;状态</TD>
    <TD class="td_border" align="middle" width="15%" bgColor="#fafbf7">操作</TD>
	</TR>

{$rs type='rs' pagesize='0' }
  <TR class="tr_border{if rs('status')=0} disabled{/if}" onmouseover="this.style.backgroundColor='#FCFDEE'"
  onmouseout="this.style.backgroundColor=''">
    <TD class="td_border" align=middle>{$rs('id')}</TD>
    <TD class="td_border" align=middle>{$rs('level')}</TD>
    <TD class="td_border" align=middle>
	<A onclick="setcopy('\{cmsself:{$rs('name')}\}', '标签 \{cmsself:{$rs('name')}\} 复制成功')"
      href="###" title="复制标签">\{cmsself:{$rs('name')}\}</A></TD>
    <TD class="td_border">&nbsp;{$rs('intro')}</TD>
    <TD class="td_border" align=middle>&nbsp;{$rs('update_time')}</TD>
	
    <TD class="td_border" align=middle>&nbsp;
	{if rs('status')=1}
	<a href="{:U(MODULE_NAME &'/closetag?id='& rs('id'))}" title="点击禁用该标签" style="color:#00f">正常</a>
	{else}
	<a href="{:U(MODULE_NAME &'/opentag?id='& rs('id'))}" title="点击启用该标签" style="color:#f00">禁用</a>
	{/if}
	</TD>
	
    <TD class="td_border" align=middle height=30>
     <A href="{:U(MODULE_NAME &'/edittag?id='& rs('id'))}">编辑</A>
     <A onclick="return confirm('确定将标签删除吗?');"
      href="{:U(MODULE_NAME &'/deltag?id='& rs('id'))}">删除</A></TD>
	  </TR>
{/$rs}
{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="7">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}

  <TR>
    <TD style="BACKGROUND: #fafbf7; BORDER-BOTTOM: #e2f5bc 4px solid" colSpan=8
    height=35>
      <DIV class=pages></DIV></TD></TR>
	 </FORM>
	</TBODY>
</TABLE><BR>

{template('footer.html')}